package com.qianchang.microfinance.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * 版 权: 深圳市迪蒙网络科技有限公司
 * 描 述: <地区json bean>
 * 修 改 人: sushuo
 * 修改时间: 2017-3-21
 */

public class AreaJsonBean implements IPickerViewData {

    private String id;
    private String name;
    private List<CityBean> children;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<CityBean> getChildren() {
        return children;
    }

    public void setChildren(List<CityBean> children) {
        this.children = children;
    }

    @Override
    public String getPickerViewText() {
        return this.name;
    }

    public static class CityBean implements IPickerViewData {
        private String id;
        private String name;
        private List<AreaBean> children;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<AreaBean> getChildren() {
            return children;
        }

        public void setChildren(List<AreaBean> children) {
            this.children = children;
        }

        @Override
        public String getPickerViewText() {
            return this.name;
        }
    }

    public static class AreaBean implements IPickerViewData {
        private String id;
        private String name;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String getPickerViewText() {
            return this.name;
        }
    }

}
